package edu.xidian.bdilab.jrbigdata.controller.enterprise;

import edu.xidian.bdilab.jrbigdata.controller.response.ResponseResult;
import edu.xidian.bdilab.jrbigdata.service.enterprise.login.EnterpriseLoginService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @ClassName EnterpriseLoginController
 * @Description TODO
 * @Author tuantuan
 * @Date 2019/3/20 下午8:31
 * @Version 1.0
 * @Attention Copyright (C), 2004-2019, BDILab, XiDian University
 **/


@RestController
@Api(tags = {"enterpriseLogin-企业用户登录功能"})
public class EnterpriseLoginController {

    @Autowired
    public EnterpriseLoginService EnterpriseLoginService;

    @RequestMapping(value = "enterprise/login", method = RequestMethod.POST)
    public ResponseResult enterprise_login(@RequestParam String name, @RequestParam String password) {

        ResponseResult responseResult= EnterpriseLoginService.responsResult(name,password);
        return responseResult;

    }

//    public ResponseResult checkEnterpriseInfo

}


